package com.mszlu.blog.service;

import com.mszlu.blog.dao.pojo.SysUser;
import com.mszlu.blog.vo.Result;
import com.mszlu.blog.vo.UserVo;

/**
 * Created with IntelliJ IDEA.
 * User: SJP
 * Date: 2022/2/26
 * Time: 16:46
 *
 * @author sjp
 * Description: No Description
 */
public interface SysUserService {
    SysUser findUserById(Long id);

    SysUser findUser(String acount, String password);

    /**
     * 根据token查询用户信息
     * @param token
     */
    Result findUserByToken(String token);

    /**
     * 根据账户查找用户
     * @param account
     * @return
     */
    SysUser findUserByUser(String account);

    /**
     * 保存用户
     * @param sysUser
     */
    void save(SysUser sysUser);

    UserVo findUserVoById(Long authorId);
}
